from django.shortcuts import render
from rest_framework import viewsets
from rest_framework import permissions
from certificate_manager.models import *
from certificate_manager.serializers import *
from rest_framework.decorators import api_view
from rest_framework.response import Response
from certificate_manager.permissions import ReadOnly

class CollectCateViewSet(viewsets.ModelViewSet):
	queryset = CollectCate.objects.all()
	serializer_class = CollectCateSerializer
	permission_classes = [permissions.IsAdminUser|ReadOnly]

